package com.universe.demo.springboot.circulardependency;


import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
@Slf4j
public class ServiceA {
    @Autowired
    private ServiceB serviceB;

    static {
        log.info("ServiceA static block");
    }


    public ServiceA() {
        log.info("a constructor");
    }

    public void say() {
        log.info("call ServiceA");
    }
    public void sayB(){
        serviceB.sayA();
    }
}
